<?php
namespace app\home\controller;
use \think\Request;
use \think\Controller;
use \think\Session;
class Common extends Controller
{
	//控制器初始化方法
	public function _initialize(){

		if (!(Session::has('id') && Session::has('phone'))) {
			$this->error('请登录',url('Student/login'));
		}
	}
}